<template>
  <div>
    <button @click="gohome">测试</button>
    <a-button color="success">成功按钮</a-button>
    <a-button color="error">错误按钮</a-button>
    <a-button color="warning">警告按钮</a-button>
  </div>
</template>

<script>
  import { useGo } from '/@/hooks/web/usePage';
  import { defineComponent } from 'vue';
  export default defineComponent({
    setup() {
      const go = useGo();

      // 执行刷新
      // go(PageEnum.Home);
      let gohome = () => {
        console.log('111');
        go('/dashboard');
        // go();
      };
      return { gohome };
    },
  });
</script>

<style lang="scss" scoped></style>
